import React from 'react'
import { Tabs } from 'antd';
import type { TabsProps } from 'antd';
import Anagementb from './Anagementb';
import Salb from './Salb';
type Props = {}
const onChange = (key: string) => {
    console.log(key);
  };

  const items: TabsProps['items'] = [
    {
      key: '1',
      label: `房源列表`,
      children: <Anagementb/>,
    },
    {
      key: '2',
      label: `添加出售`,
      children: <Salb/>,
    },
  ];
  
const Tabb = (props: Props) => {
  return (
    <Tabs defaultActiveKey="1" items={items} onChange={onChange} />
  )
}

export default Tabb